<?php

class FV_TailleMin {
	
	private $limite = null;
	private $error = null;
	
	public function __construct($limite){
		$this->limite = $limite;
		$this->error = 'Taille inférieure à '.$this->limite.' charactères';
	}
	
	public function getError(){
		return $this->error;
	}
		
	public function test($value){
		return (strlen(trim($value)) >= $this->limite);
	}
	
}